package playsManager;

import java.io.Serializable;
import java.util.ArrayList;

import playsManager.database.DatabaseItem;
import playsManager.globals.Globals;

public class Play implements Serializable, DatabaseItem {
	
	private static final long serialVersionUID = Globals.serialVersionUID;
	
	/*
	 * warning!
	 * changing variables below will render the database
	 * unusable.  if you re-order, add or remove any
	 * instance variables below, be sure to increment
	 * the Globals.serialVersionUID variable.
	 */
	
	private int id;
	private int theaterId;
	private String name;
	private ArrayList<Long> dates;
	private String genre;
	private String description;
	
	public Play()
	{
		dates = new ArrayList<Long>();
	}
	
	public int GetId() {
		return id;
	}

	public void SetId(int id) {
		this.id = id;
	}

	public int GetTheaterId() {
		return theaterId;
	}

	public void SetTheaterId(int id) {
		this.theaterId = id;
	}

	public String GetName() {
		return name;
	}

	public void SetName(String name) {
		this.name = name;
	}

	@SuppressWarnings("unchecked")
	public ArrayList<Long> GetDates() {
		return (ArrayList<Long>)this.dates.clone();
	}

	@SuppressWarnings("unchecked")
	public void SetDates(ArrayList<Long> dates) {
		this.dates = (ArrayList<Long>)dates.clone();
	}

	public String GetGenre() {
		return this.genre;
	}

	public void SetGenre(String genre) {
		this.genre = genre;
	}

	public String GetDescription() {
		return this.description;
	}

	public void SetDescription(String description) {
		this.description = description;	
	}
	
}
